<html>
<head><meta charset="utf-8"><title>running Docker containers on macOS · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/running.20Docker.20containers.20on.20macOS.html">running Docker containers on macOS</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="199865084"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/running%20Docker%20containers%20on%20macOS/near/199865084" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/running.20Docker.20containers.20on.20macOS.html#199865084">(Jun 05 2020 at 11:49)</a>:</h4>
<p>I'm trying to run the 32-bit Linux Docker containers on macOS, but I get:</p>
<div class="codehilite"><pre><span></span><code>configure: writing `config.toml` in current directory
Traceback (most recent call last):
  File &quot;/checkout/src/bootstrap/configure.py&quot;, line 453, in &lt;module&gt;
    with bootstrap.output(&#39;config.toml&#39;) as f:
  File &quot;/usr/lib/python3.5/contextlib.py&quot;, line 59, in __enter__
    return next(self.gen)
  File &quot;/checkout/src/bootstrap/bootstrap.py&quot;, line 319, in output
    with open(tmp, &#39;w&#39;) as f:
PermissionError: [Errno 13] Permission denied: &#39;config.toml.tmp&#39;
</code></pre></div>


<p>I'm investigating, but maybe someone has seen this already?</p>



<a name="199865344"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/running%20Docker%20containers%20on%20macOS/near/199865344" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/running.20Docker.20containers.20on.20macOS.html#199865344">(Jun 05 2020 at 11:52)</a>:</h4>
<p>I've usually seen this because something tries to volume-mount</p>



<a name="199865394"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/running%20Docker%20containers%20on%20macOS/near/199865394" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/running.20Docker.20containers.20on.20macOS.html#199865394">(Jun 05 2020 at 11:53)</a>:</h4>
<p>In the playground, I need to specify the temporary directory inside my <code>$HOME</code>, for example, as that directory is what is shared with the VM that runs Docker proper.</p>



<a name="199866735"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/running%20Docker%20containers%20on%20macOS/near/199866735" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/running.20Docker.20containers.20on.20macOS.html#199866735">(Jun 05 2020 at 12:08)</a>:</h4>
<div class="codehilite"><pre><span></span><code>pwd
/checkout/obj
</code></pre></div>


<div class="codehilite"><pre><span></span><code> /checkout/configure --build=i686-unknown-linux-gnu --set build.print-step-timings --enable-verbose-tests --enable-sccache --disable-manage-submodules --enable-locked-deps --enable-cargo-native-static --set rust.codegen-units-std=1 --disable-dist-src --release-channel=nightly --set rust.verify-llvm-ir --enable-missing-tools
</code></pre></div>



<a name="199868538"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/running%20Docker%20containers%20on%20macOS/near/199868538" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/running.20Docker.20containers.20on.20macOS.html#199868538">(Jun 05 2020 at 12:28)</a>:</h4>
<p>Extra strange is that running that command "by hand" works.</p>



<a name="199868574"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/running%20Docker%20containers%20on%20macOS/near/199868574" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/running.20Docker.20containers.20on.20macOS.html#199868574">(Jun 05 2020 at 12:28)</a>:</h4>
<p>But later on...</p>
<div class="codehilite"><pre><span></span><code>cargo:warning=Assembler messages:
cargo:warning=Fatal error: can&#39;t create /checkout/obj/build/i686-unknown-linux-gnu/stage0-std/i686-unknown-linux-gnu/release/build/compiler_builtins-3e0e1aa8fca4e46e/out/absvdi2.o: Permission denied
</code></pre></div>



<a name="199952340"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/running%20Docker%20containers%20on%20macOS/near/199952340" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/running.20Docker.20containers.20on.20macOS.html#199952340">(Jun 06 2020 at 02:38)</a>:</h4>
<p>Rounding hour 8 trying to compile this in 32-bit. Should have just copied the text from the error logs.</p>



<a name="199970037"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/running%20Docker%20containers%20on%20macOS/near/199970037" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/running.20Docker.20containers.20on.20macOS.html#199970037">(Jun 06 2020 at 11:22)</a>:</h4>
<p>well, seems to be running the tests now</p>



<a name="199974076"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/running%20Docker%20containers%20on%20macOS/near/199974076" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/running.20Docker.20containers.20on.20macOS.html#199974076">(Jun 06 2020 at 13:01)</a>:</h4>
<p>And it failed because the filesystem was read-only<br>
now it's rebuilding everything from scratch, even though nothing changed.</p>



<a name="199987023"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/running%20Docker%20containers%20on%20macOS/near/199987023" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/running.20Docker.20containers.20on.20macOS.html#199987023">(Jun 06 2020 at 18:19)</a>:</h4>
<p>How are you building the docker image?  If I run <code>src/ci/docker/run.sh i686-gnu</code>, it builds and runs the tests for me on macos.  (I've been having a different issue with random <code>can't find crate for </code>panic_unwind<code> which </code>std<code> depends on</code> errors when using docker on macos, so I've mostly given up and only do docker stuff on linux, which is much faster anyways)</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>